package com.ccp.dev.workflow.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.workflow.model.ProcessTaskHistory;

import java.util.List;

public interface TaskHistoryDao extends IBaseMapper<ProcessTaskHistory,String> {
    /**
     * 根据流程实例id查找已完成的任务
     * @param processInstanceId
     * @return
     */
    List<ProcessTaskHistory> getLastFinishTaskByProcId(String processInstanceId);

    /**
     * 更新历史任务表执行人信息
     * @param taskHistory
     */
    void updateAssignee(ProcessTaskHistory taskHistory);

}
